/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.struts.taglib;

import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;


/**
 * This is the TagExtraInfo class for the ReferenceElementDefineTag tag.
 */
public class ReferenceElementDefineTei extends TagExtraInfo
{
    /**
     * see TagExtraInfo.
     *
     * @param data see TagExtraInfo
     *
     * @return see TagExtraInfo
     */
    @Override
	public VariableInfo[] getVariableInfo(TagData data)
    {
        String type = "java.util.List";
        Object value = data.getAttribute("value");

        return new VariableInfo[]
        {
            new VariableInfo(data.getAttributeString("id"), type, true,
                VariableInfo.AT_END)
        };
    }
}
